package com.yc.exception;

import com.yc.api.IErrorCode;

/**
 * <p>
 * 断言处理类，用于抛出各种API异常
 * <p>
 *
 * @author BAO
 * @since 2020/9/12 22:26
 */
public class Asserts {
    public static void fail(String message) {
        throw new ApiException(message);
    }

    public static void fail(IErrorCode errorCode) {
        throw new ApiException(errorCode);
    }
}